<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache-control" content="no-cache,no-store,must-revalidate,max-age=3" />
	<meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT" />
	<meta name="author" content="dsaiyin.com" />
	<meta name="license" content="LGPL" />
	<title>个人中心</title>
    <style>
        iframe{
            width: 88%;
            height: 85%;
            position: fixed;
            bottom: 0px;
            left: 10px;
        }
    </style>

    <link rel="stylesheet" type="text/css" href="/assets/Public/css/artdialog.css" />
    <script type="text/javascript" src="/assets/Public/js/jquery.artdialog.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/assets/Public/css/member.css"/>
    <link rel="stylesheet" type="text/css" href="/assets/Public/css/style.css" />
    <script type="text/javascript" src="/assets/Public/js/jquery.min.1.11.3.js" charset="utf-8"></script>
    <!--[if IE]>
    <script type="text/javascript" src="/assets/Public/js/html5.js" charset="utf-8"></script>
    <![endif]-->
    <script type="text/javascript" src="/assets/Public/js/global.js" charset="utf-8"></script>
    <script type="text/javascript" src="/assets/Public/js/layer.js" charset="utf-8"></script>

</head>
<?php if(time()-5 < $_SESSION['users']['log_time']){ ?>
<body onload='showalert()'>
<?php }else{ ?>
<body>
<?php } ?>
<div id="container">
	<div id="topBar">
				<a href="javascript:logout('<?php echo ($_SESSION['users']['account']); ?>');void(0)" class="floatRight btn_blue bar_btn mr20">退出</a>
		<div id="usrInfo" class="floatRight">
		<span class="mr10">
            <a href="/personage" class="bar_link"><?php echo ($_SESSION['users']['account']); ?>
                (<?php if($_SESSION['users']['realname']== false): echo ($_SESSION['users']['account']); ?> <?php else: echo ($_SESSION['users']['realname']); endif; ?>)
            </a>
        </span>
        <span>余额</span>
        <span class="iconfont mr4">󰅐</span>
        <span class="bold" id="allingot" style="font-size: 20px;color: #FFF811;"><?php echo ($balance); ?></span>
        <a href="javascript:void(0);" class="bar_link">[充值]</a>
		</div>

		<div id="logo" class="floatLeft mr10 ml20 "><a href="/"><img src="/assets/Public/images/logo.png" alt="裕鸟国际货运" width="70" title="裕鸟国际货运"/></a></div>
		<div id="links" class="floatLeft">
            <a href="/" target="_self">网站首页</a>
            <a href="/company" target="_self">公司简介</a>
            <a href="/news" target="_self">网站公告</a>
            <a href="/help" target="_self">帮助中心</a>
            <a href="/contactus" target="_self">联系我们</a>

        </div>
	</div>
    <script>
    $(function() {
        //$(".b_nav dd").show();
        $(".b_nav dt").click(function(){
            $(".b_nav dd").slideUp("slow");
            $(this).next().slideDown("slow");
        });
    })
</script>
<div id="topMenu">
    <div id="navigation">
        <dl class="b_nav">
            <dt class="b_navCell"><em class="iconfont">󰃤</em><span class="text"><a href="/personage">我的主页</a></span></dt>
        </dl>
        <dl class="b_nav">
           <!-- <dt class="b_navCell"><em class="iconfont"> </em><span class="text">包裹管理</span></dt>
            <dd style="display:none">
                <a href="">包裹预报</a>
                <a href="">我的包裹</a>
                <a href="">创建包裹运单</a>
            </dd>-->
            <dt class="b_navCell"><em class="iconfont">󰀲</em><span class="text">运单管理</span></dt>
            <dd style="display:block">
                 <a href="/personage/tariff/num/<?php echo ($_SESSION['users']['id']); ?>"  target="right">查询下单</a>
                <!--<a href="/personage/waybill">生成运单</a>-->
                <a href="/personage/order/num/<?php echo ($_SESSION['users']['id']); ?>"   target="right">我的运单</a>
            </dd>
            <dt class="b_navCell"><em class="iconfont">󰅐</em><span class="text">财务管理</span></dt>
            <dd style="display:none">
                <a href="/personage/recharge/num/<?php echo ($_SESSION['users']['id']); ?>" target="right">账户充值</a>
                <a href="/personage/detailed/num/<?php echo ($_SESSION['users']['id']); ?>" target="right">资金明细</a>
                <!--<a href="">申请理赔</a>-->
            </dd>
            <dt class="b_navCell"><em class="iconfont">󰃖</em><span class="text">账户设置</span></dt>
            <dd style="display:none">
                <a href="/personage/message/num/<?php echo ($_SESSION['users']['id']); ?>" target="right"  class="focus">我的账户</a>
                <a href="/personage/modifydata/num/<?php echo ($_SESSION['users']['id']); ?>" target="right">修改资料</a>
                <a href="/personage/edit_pw/num/<?php echo ($_SESSION['users']['id']); ?>" target="right">修改密码</a>
                <a href="javascript:logout('<?php echo ($_SESSION['users']['account']); ?>');void(0);" title="会员退出">会员退出</a>
            </dd>
        </dl>
    </div>
</div>
<div class="clearFix"></div>
<div id="noticContent">
    <div class="noticContentTitle">
        <em class="iconfont">󰃖</em>
        <span id="iostime"></span><!--网站公告：新手指南　2016-09-10 02:54:48-->
        <a href="" class="blue" target="_black">点击查看详情&gt;</a>
    </div>
</div>
<div id="contentWrapper">
    <div id="contentInner">
        <?php if($Think.session.id_arr.type==waybill): ?><iframe class="contentCard" src="/Personage/waybill/num/<?php echo ($_SESSION['users']['id']); ?>/cid/<?php echo ($_SESSION['id_arr']['cid']); ?>/qid/<?php echo ($_SESSION['id_arr']['qid']); ?>" name="right" frameborder="1"></iframe>
            <?php else: ?>
            <iframe class="contentCard" src="/Personage/message/num/<?php echo ($_SESSION['users']['id']); ?>" name="right" frameborder="1" ></iframe><?php endif; ?>
    </div>
</div>
    <!--<div class="tc f12">Copyright (c) 2012-2016 All Rights. </div>-->
</div>

<script type="text/javascript">
    setInterval(function(){
        var mydate = new Date();
        var n =mydate.getFullYear();
        var y = mydate.getMonth();
        var r= mydate.getDate();
        var h= mydate.getHours();
        var i=mydate.getMinutes();
        var s=mydate.getSeconds();
        var tat=n+"-"+y+'-'+r+' '+h+":"+i+":"+s+"";
        $("#iostime").text(tat);
    },1000)


    function logout(t){
        var q = confirm("您好，【"+t+"】，确定要退出吗？");
        if(q == false)
        {
            return false;
        }else{
            document.location.href="/login/quit/id/<?php echo ($_SESSION['users']['id']); ?>";
        }

    }

    $("dd a").click(function(){
        $("dd a").css("color","rgb(97, 113, 139)");
        $(this).css("color","rgb(250, 116, 86)");
    });
   /* function showalert(){
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            shadeClose: true,
            skin: 'yourclass',
            content: '自定义HTML内容'
        });
    }*/


</script>
<link rel="stylesheet" href="/assets/Public/css/theme.css" media="all">
<script src="/assets/Public/js/jquery.min.js"></script>
<div class="theme-popover">
    <div class="theme-poptit">
        <a href="javascript:;" title="关闭" class="close">×</a>
        <h3>运单信息</h3>
    </div>
    <div class="theme-popbod dform">
        <table>
            <tr>
                <td>等待付款</td>
                <?php if($ac[0]==false): ?><td width="75">0</td>
                <?php else: ?>
                    <td width="75"><?php echo ($ac); ?></td><?php endif; ?>
                <td >金额</td>
                <td >￥<?php echo ($balance); ?></td>
            </tr>
        </table>
        <div>
            <!--{if($balance >=0)}-->
                没有运单未付款
                <!--{else}-->
                你有<?php echo ($ac); ?>单运单未付，块去付款吧！
            <!--{/if}-->
        </div>
        <div class="top_bot">
            <a href="javascript:;" title="关闭" class="cla">取消</a>
        </div>

    </div>

</div>
<div class="theme-popover-mask"></div>

<script>

    function showalert(){
        $('.theme-popover-mask').fadeIn(100);
        $('.theme-popover').slideDown(200);
    }
    $('.theme-poptit .close').click(function(){
        $('.theme-popover-mask').fadeOut(100);
        $('.theme-popover').slideUp(200);
    })
    $('.top_bot .cla').click(function(){
        $('.theme-popover-mask').fadeOut(100);
        $('.theme-popover').slideUp(200);
    })
</script>

</body>
</html>